/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package proyectocatalina;
import javax.swing.JFrame;
import javax.swing.JProgressBar;
/**
 *
 * @author principal
 */

public class HiloProgreso extends Thread{
    JProgressBar progreso;
    Splash splah;
     private boolean shutdown;
       Login login = new Login();
    public HiloProgreso(JFrame splash){
        super();     
        this.splah = (Splash) splash;
    }
    public void run(){
    for(int i=1;i<=70;i++){
        pausa(50);
    }

     login.setVisible(true);
      splah.setVisible(false);
       try {
          // your thread sleep interval
          Thread.sleep(6000);
       } catch (InterruptedException exp) {
          // ignore this error
       }     
    }
    public void pausa(int mlSeg){
    try{
        Thread.sleep(mlSeg);
    }catch(Exception e){}
}
    public void shutdown() {
     if (isAlive()) {
        this.shutdown = true;
        this.interrupt();
        try {
           // wait till this thread dies
           this.join();
        } catch (InterruptedException e) {
           // safe to ignore this error
        }
     }
  }
}

